# -*- coding: utf-8 -*-
import numpy as np
# 通用函数
if __name__ == '__main__':
    rand = np.random.rand(2, 3)
    print rand
    # 向上取整
    print np.ceil(rand)
    # 向下取整
    print np.floor(rand)
    # 四舍五入
    print np.rint(rand)
    # 判断是否是nan
    print np.isnan(rand)